#import <Cocoa/Cocoa.h>
#import "ManagingViewController.h"

@class RNFilteringArrayController;
@class RNSearchMenuView;
@class RNSearchWindow;
@class SRStyledPopUpButton;

@interface RNAddItemViewController : ManagingViewController {
    NSSearchField *searchField_;
    RNSearchMenuView *searchMenu_;
    RNSearchWindow *searchWindow_;
    RNFilteringArrayController *filteredItemsController_;
    NSUInteger tableRows_;
    NSArray *menuExtras_;
    BOOL displayingMenu_;
    SRStyledPopUpButton *storesPopup_;
}

@property (nonatomic, assign) IBOutlet NSSearchField *searchField;
@property (nonatomic, assign) IBOutlet RNFilteringArrayController *filteredItemsArrayController;
@property (nonatomic, assign) IBOutlet SRStyledPopUpButton *storesPopup;
@property (nonatomic, retain) RNSearchMenuView *searchMenu;
@property (nonatomic, retain) RNSearchWindow *searchWindow;
@property (nonatomic, assign) NSUInteger tableRows;
@property (nonatomic, retain) NSArray *menuExtras;
@property (nonatomic, assign) BOOL displayingMenu;

-(IBAction)searchStringChanged:(id)sender;
-(IBAction)searchMenuClicked:(id)sender;
-(IBAction)setFocusOnSearchField:(id)sender;
-(void)mainWindowDidResize:(NSNotification *)note;

@end